import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

// 查询用户列表
export function listUser(query) {
  return request({
    url: '/user/list',
    method: 'get',
    params: query
  })
}

export function addUser(data) {
  return request({
    url: '/user/add',
    method: 'post',
    data: data
  })
}

export function updateUser(data) {
  return request({
    url: '/user/edit',
    method: 'post',
    data: data
  })
}

export function setPassword(data) {
  return request({
    url: '/user/setPassword',
    method: 'post',
    data: data
  })
}